import Vue from 'vue'
import Router from 'vue-router'
import List from '@/page/list'
import HelloWorld from '@/components/HelloWorld'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'List',
      component: List
    },
    {
      path: '/detail:id',
      name: 'detail',
      component: HelloWorld
    }
  ]
})
